<?php /*xuzhou hook*/
if(strpos($head, '达人') !== FALSE){
    $head = str_replace('达人', '客服', $head);
}
?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <base href="<?php echo URLPRE;?>static/template/weixin/mobile/" />
    <title><?php if(!empty($common[0]['title'])){ echo $common[0]['title'];}else{echo $head;}?></title>
    <!--<meta http-equiv="Pragma" content="no-cache">-->
    <!--<meta http-equiv="Expires" content="-1">-->
    <meta name="keywords" content="<?php if(!empty($common[0]['keywords'])) echo $common[0]['keywords'];?>" />
    <meta name="description" content="<?php if(!empty($common[0]['description'])) echo $common[0]['description'];?>" />
    <link rel="shortcut icon" href="<?php echo $site_ico;?>" mce_href="<?php echo $site_ico ;?>" type="image/x-icon">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="stylesheet" href="<?php echo URLPRE;?>static/template/weixin/mobile/css/swiper.3.1.2.min.css" type="text/css">
    <link rel="stylesheet" href="<?php echo URLPRE;?>static/template/weixin/mobile/css/style.css?_=22121" type="text/css">
    <link rel="stylesheet" href="<?php echo URLPRE;?>static/template/weixin/mobile/css/dl.css" type="text/css">
    <link href="<?php echo URLPRE;?>static/template/weixin/mobile/css/component.css" rel="stylesheet" type="text/css" />
    <style type="text/css">.content table td{ border:1px solid} .swiper-container {width: 100%; }   .swiper-container img{width: 100%;}  </style><?php echo $bg?>
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/template/weixin/mobile/css/dialog.css" />

    <script src="js/jquery-1.10.1.min.js"></script>
    <script src="js/jquery.lazyload.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/weixin/mobile/js/mobilecommon.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/weixin/mobile/js/slider.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/weixin/mobile/js/dialog.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/template/weixin/mobile/js/jquery.lazyload.js"></script>
    <script type="text/javascript">
        var baseurl = '<?php echo URLPRE?>',
            basemobileurl = '<?php echo site_url('mobile/index')?>',
            ADMINID = <?PHP echo @intval($this->session->userdata('admin_user_id'))?>,
            USERID = <?PHP echo @intval($this->session->userdata('user_id'))?>,
            loginUrl = '<?php echo site_url('/mobile/member/logout');?>' ;
        function unset_login(){
            $.post(loginUrl,{
                action:'unset'
            },function(data){
                var json = eval("("+data+")");
                if(json['status']=='1'){
                    if(json['action']=='unset'){
                        window.location.reload();
                    }
                }
            })
        }
    </script>
</head>
<body>
<?php if(!$common[0]['noback']){?>
    <div class="backbar">
        <div class="bkbtn">
            <a href="javascript:window.history.go(-1);">
                <img src="img/backbtn.png">
            </a>
        </div>
        <div class="bktitle">
            <p><strong><?php if(!empty($head)){ echo $head;}else{echo $common[0]['title'];}?></strong></p>
        </div>
        <div class="share">
            <a href="javascript:;">
                <span><small>分享</small></span>
                <img src="img/fxbtn.png">
            </a>
        </div>
    </div>
<?php }?>
<?php
//$this->load->module('mobile/index/header', $common);
?>
<?php include 'index_body.php';?>
<?php if($card_info = unserialize($_COOKIE['card_info'])){?>


<!--    <div class="about-this-store">
        <p> <?php /*echo $_COOKIE['expert_company'] ? $_COOKIE['expert_company'] : $company*/?>(<?php /*echo $card_info['realname']*/?>)</p>
        <p> <?php /*echo $card_info['addr'] ? $card_info['addr']  : $company_address*/?></p>
        <p> <?php /*echo $_COOKIE['from_tel'] ? $_COOKIE['from_tel'] : $site_service_phone*/?></p>
   </div>-->

<?php }?>
<?php echo $sharehtml?>
<?php //$this->load->module('mobile/index/footer', $common);?>


<div class="blank5" style="margin-bottom: 4em;"></div>
<div class="foottools" <?php if($GLOBALS['config']['hidebottom']){echo 'style="display:none"';}?>>
    <ul class="ft">
        <li><a href="<?php echo site_url('')?>"><img src="img/foottools_01.png"><p><small>首页</small></p></a></li>
        <li><a href="<?php echo site_url('mobile/order/line_list')?>"><img src="img/foottools_02.png"><p><small>订单</small></p></a></li>
        <li><a href="<?php echo USERID ? site_url('mobile/member/center') : site_url('mobile/member/login/?referer='.urlencode(get_url(1)))?>"><img src="img/foottools_03.png"><p><small>我的</small></p></a></li>
        <li><a href="tel:<?php echo $_GET['eid'] ? $_COOKIE['from_tel'] : $site_service_phone?>"><img src="img/foottools_04.png"><p><small>电话</small></p></a></li>
    </ul>
</div>


<div style="background:rgba(0,0,0,.5) url(<?php echo URLPRE . 'static/template/xuzhou/mobile/images/guide.png' ?>) no-repeat center 0;position:fixed;top:0;left:0;bottom:0;right:0;z-index:9999;display:none;" onclick="this.style.display = 'none'" id="guider"></div>
<script>
    $(function() {
        $("img").lazyload({threshold: 10, failurelimit: 10, effect: "fadeIn" });
        $('html, body').trigger('click');
    });//jQuery Lazy Load配置函数
    $('.share').click(function () {
        $('#guider').show();
    });
</script>

</body>
</html>
